<template>
  <div id="app">
    <transition name="fade">
      <router-view/>
    </transition>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator'

@Component({
  components: {
  },
  })

export default class Home extends Vue {
  private mounted (): void {
    // alert(document.body.clientHeight)
  }
}
</script>

<style lang="less">
body {
  margin: 0;
}
#app {
  text-align: center;
  color: #2c3e50;
  position: relative;
  .slide-fade-enter-active {
    transition: all .2s ease;
  }
  .slide-fade-leave-active {
    // transition: all .1s cubic-bezier(1.0, 0.5, 0.8, 1.0);
    transition: all .2s ease;
  }
  .slide-fade-enter, .slide-fade-leave-to
  /* .slide-fade-leave-active for below version 2.1.8 */ {
    transform: translateX(.4rem);
    // transform: translate3d(100%, 0, 0);
    opacity: 0;
  }
  .fade-enter-active, .fade-leave-active {
  transition: opacity .3s;
  }
  .fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
    opacity: 0;
  }
}
</style>
